<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<div id="breadcrumbs">

    <?php if (isset($this->breadcrumbs)): ?>
        <?php
        $this->widget('zii.widgets.CBreadcrumbs', array(
            'links' => $this->breadcrumbs,
        ));
        ?><!-- breadcrumbs -->
    <?php endif ?>
</div>
<div class="clearfix" id="content">
    <div id="content-area">

        <div class="entry clearfix">
            <?php echo $content; ?>								
        </div> <!-- end .entry -->

    </div> <!-- end #content-area -->	

    
    
    <div class="clearfix" id="sidebar">
        <?php
        $this->beginWidget('zii.widgets.CPortlet', array(
            'title' => 'Operations',
        ));
        $this->widget('zii.widgets.CMenu', array(
            'items' => $this->menu,
            'htmlOptions' => array('class' => 'operations'),
        ));
        $this->endWidget();
        ?>
      
  <div id="sidebar">

        <div class="sidebar-block ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabbed" style="display: block;">
            <ul class="clearfix ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" id="tabbed-area">
                <li class="first ui-corner-top  ui-tabs-selected ui-state-active"><a href="#recent-tabbed">Duyurular</a></li>
                <li class="second ui-corner-top ui-state-default"><a href="#popular-tabbed">Haberler</a></li>
                <li class="last ui-corner-top ui-state-default"><a href="#random-tabbed">Sosyal Medya</a></li>
            </ul>

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom" id="recent-tabbed" style="">
                <h3 class="widgettitle">Aydan'dan...</h3>
                <?php
                 $this->widget('zii.widgets.CListView', array(
                                'dataProvider' => new CActiveDataProvider(
                                'Duyuru',
                                  array(
                                     'pagination'=>array('pageSize'=>10),
                                     'criteria'=>array('order'=>'yayin_zamani DESC'))),
                                 'itemView'=>'/duyuru/_view_site',
                                 'summaryText'=>''
                            ));
                ?>	
            </div> <!-- end #recent-tabbed -->

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom  ui-tabs-hide" id="popular-tabbed" style="">
                <h3 class="widgettitle">Sektörden...</h3>
                <?php
                 $this->widget('zii.widgets.CListView', array(
                                'dataProvider' => new CActiveDataProvider(
                                'Haber',
                                  array(
                                     'pagination'=>array('pageSize'=>10),
                                     'criteria'=>array('order'=>'yayin_zamani DESC'))),
                                 'itemView'=>'/haber/_view_site',
                                 'summaryText'=>''
                            ));
                ?>
            </div> <!-- end #recent-tabbed -->

            <div class="widget ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="random-tabbed" style="">
                
                <a class="twitter-timeline"  
                  href="https://twitter.com/AydanYayincilik"  
                  data-widget-id="373809118122741760">@AydanYayincilik kullanıcısından Tweetler</a>
               <script>
                   !function(d,s,id){
                            var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';
                            if(!d.getElementById(id)){
                                js=d.createElement(s);
                                js.id=id;
                                js.src=p+"://platform.twitter.com/widgets.js";
                                fjs.parentNode.insertBefore(js,fjs);
                            }
                    }
                   (document,"script","twitter-wjs");
               </script>
                
            </div> <!-- end #recent-tabbed -->
        </div> <!-- end .sidebar-block-->

    </div> <!-- end #sidebar -->
        <!-- end .widget -->
        <!-- end .widget --></div> <!-- end sidebar -->		</div>

<?php $this->endContent(); ?>